﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RouterControl.IO.Services;

namespace RouterControl.Diag
{
    internal sealed class FeatureTestConnectionStatus : FeatureTest
    {
        public FeatureTestConnectionStatus(CommonInternetGateway dev) 
            : base(dev, "Connection Status")
        {
        }

        public override DiagResult Run()
        {
            return (
                _dev.ConnectionStatus.HasValue ?
                DiagResult.Success :
                DiagResult.Failure
                );
        }
    }
}
